<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\User as Model;


class User extends \App\Http\Controllers\Controller
{

    //后台用户信息
    public function info(Request $req)
    {
        $user = $req->user('admin');
        if ($req->id) {
            $user = Model::find($req->id);
        }
        $user->desc = '后台用户';
        return $this->resSuccess('', $user);
    }






}
